#include "DestroyObjectMessage.h"
#include "IObject.h"

CDestroyObjectMessage::CDestroyObjectMessage( IObject* pToDestroy )
	: CMessage( MSG_DESTROY_OBJECT )
{
	m_pToDestroy = pToDestroy;

	if( m_pToDestroy != nullptr )
		m_pToDestroy->AddRef();
}


CDestroyObjectMessage::~CDestroyObjectMessage(void)
{
	if( m_pToDestroy != nullptr )
		m_pToDestroy->Release();
}
